/*
 * Copyright 2017 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.admin.ao.impl;

import java.util.Collections;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lap.scd.commons.ao.AbstractAO;
import com.lap.scp.admin.ao.LabelAO;
import com.lap.scp.admin.core.LabelManager;
import com.lap.scp.admin.domain.LabelDO;

/**
 * <pre>
 * 集成应用对象
 * </pre>
 * 
 * @author 劳水生 Exp
 * @Date 2017年9月4日 下午2:55:10
 * @since 1.0
 */
@Service("labelAO")
public class DefaultLabelAO extends AbstractAO implements LabelAO {

	@Resource
	private LabelManager labelManager;

	@Override
	public List<LabelDO> queryRole() {
		List<LabelDO> list = Collections.emptyList();
		try {
			list = labelManager.queryRole();
		} catch (Exception e) {
			writeLog(e);
		}
		return list;
	}

	@Override
	public List<LabelDO> queryResources() {
		List<LabelDO> list = Collections.emptyList();
		try {
			list = labelManager.queryResources();
		} catch (Exception e) {
			writeLog(e);
		}
		return list;
	}

	@Override
	public List<LabelDO> queryJob() {
		List<LabelDO> list = Collections.emptyList();
		try {
			list = labelManager.queryJob();
		} catch (Exception e) {
			writeLog(e);
		}
		return list;
	}

	@Override
	public List<LabelDO> queryDept() {
		List<LabelDO> list = Collections.emptyList();
		try {
			list = labelManager.queryDept();
		} catch (Exception e) {
			writeLog(e);
		}
		return list;
	}

}
